package com.dapeis.im.tim.req.message;


import com.ag.core.base.Domain;
import com.dapeis.core.utils.StylistConstants;

/**
 * TIM用户消息推送
 * 
 * @author yuanyong
 *
 */
public class TIMMessage extends Domain {

    private static final long serialVersionUID = -2826953819277199589L;

    // String From_Account;选填 管理员指定消息发送方账号。
    String To_Account;
    Integer MsgRandom;
    TIMMessageBody[] MsgBody; //在线推送
    TIMOfflinePush offlinePush;

    public TIMMessage() {
    }
    
    public TIMMessage(String account, TIMMessageBody msgBody) {
	TIMMessageBody[] mbody = new TIMMessageBody[1];
	mbody[0] = msgBody;
	this.To_Account = account;
	this.MsgBody = mbody;
	this.MsgRandom = StylistConstants.getTIMMsgRandom();
	this.offlinePush = new TIMOfflinePush();
    }

    public String getTo_Account() {
	return To_Account;
    }

    public void setTo_Account(String to_Account) {
	To_Account = to_Account;
    }

    public Integer getMsgRandom() {
	return MsgRandom;
    }

    public void setMsgRandom(Integer msgRandom) {
	MsgRandom = msgRandom;
    }

    public TIMMessageBody[] getMsgBody() {
        return MsgBody;
    }

    public void setMsgBody(TIMMessageBody[] msgBody) {
        MsgBody = msgBody;
    }

    public TIMOfflinePush getOfflinePush() {
        return offlinePush;
    }

    public void setOfflinePush(TIMOfflinePush offlinePush) {
        this.offlinePush = offlinePush;
    }
    
}
